package Month09.day0916;

public class plant {

    int a = 10;//父类独有变量a
    int b = 20;//这是父类和子类同名变量b

    public  void methodA(){//这是父类和子类同名方法A
        System.out.println("这是父类方法A");
    }

    public  void methodB(){//父类独有方法B
        System.out.println("这是父类方法B");
    }

}


/*String name;
    int age;
    String color;
    public void eat(){
        System.out.println(name + "正在进食");
    }
    */